#define  CRT SECURE NO WARNINGS 1
#include<stdio.h>
int main()
{
	int count = 0;
	int n = 0;
	int i = 0;
	for (n = 1;n <= 9;n++) {
		for (i = 1;i <= n;i++) {
			printf("%d*%d=%d ",n,i,n*i);
			count++;
			if (count == n) {
				printf("\n");
				count = 0;
			}
		}
	}
	return 0;
}